import { BaseItem } from "../../common/BaseItem";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
//class PropItem
    
    export  class PropItem extends BaseItem
    {
        constructor()
        {
            super();
            this.bitmap = new Object /* flash.display.Bitmap */();
            addChildAt(this.bitmap, 0);
            this.bitmap.x = -2;
            this.bitmap.y = -2;
            this.bitmap.bitmapData = GlobalClass.getBitmapData(ImagesConst.PackItemBg);
            return;
        }

        public get isBig(): Boolean
        {
            return this._isBig;
        }

        public set isBig(arg1: Boolean)
        {
            this._isBig = arg1;
            if (this._isBig) 
            {
                this.bitmap.bitmapData = GlobalClass.getBitmapData(ImagesConst.PropBg);
                this.bitmap.x = -5;
                this.bitmap.y = -5;
                this.setSize(60, 60);
            }
            else 
            {
                this.bitmap.bitmapData = GlobalClass.getBitmapData(ImagesConst.PackItemBg);
                this.bitmap.x = -2;
                this.bitmap.y = -2;
                this.setSize(34, 34);
            }
            return;
        }

        /* internal */ /* var */_isBig: Boolean=false;

        /* internal */ /* var */bitmap: Object /* flash.display.Bitmap */;
    }
